import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lyw
 * Date: 2025-03-06
 * Time: 17:03
 */
public class Test {
    //java中的输入操作(不常用)
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println(n);
        float f = scanner.nextFloat();
        System.out.println(f);
    }
    //求出0-100之间能整除3 也能整除5的数字
    public static void main7(String[] args) {
        int i = 1;
        while( i <= 100){
            if( i % 3 == 0 && i % 5 == 0){
                System.out.print(i + " ");
            }
            i++;
        }

    }
    public static void main6(String[] args) {
        //for循环求解1! + 2! + ...+5!
        int sum = 0;
        for (int i = 1; i <= 5; i++) {
            int ret = 1;
            for (int j = 1; j <= i; j++) {
                ret *= j;
            }
            sum += ret;
        }
        System.out.println(sum);
    }
    //while循环求 1！ + 2！ + ...+ 5！
    public static void main5(String[] args) {
        int i = 1;
        int sum = 0;
        while( i <= 5){
            int j = 1;
            int ret = 1;
            while( j <= i){
                ret *= j;
                j++;
            }
            sum += ret;
            i++;
        }
        System.out.println(sum);
    }
    //switch语句
    public static void main4(String[] args){
        int a = 1;
        switch (a){
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期日");
                break;
            default:
                break;
        }
    }
    //判断是不是偶数
    public static void main3(String[] args) {
        int a = 10;
        if( a % 2 == 0){
            System.out.println("是偶数");
        }else{
            System.out.println("非偶数");
        }

    }
    //^按位异或操作符
    public static void main2(String[] args) {
        int a = 10;
        int _a = a ^ a;
        int __a = a ^ 0;
        System.out.println(_a);
        System.out.println(__a);
    }
    //判断是否为闰年
    public static void main1(String[] args) {
        int year = 2000;
        if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            System.out.println("是闰年");
        }else{
            System.out.println("不是闰年");
        }
    }
}
